import request from '@/utils/request'

// 查询过滤记录列表
export function listLeachRecords(query) {
  return request({
    url: '/system/leachRecords/list',
    method: 'get',
    params: query
  })
}

// 查询过滤记录详细
export function getLeachRecords(id) {
  return request({
    url: '/system/leachRecords/' + id,
    method: 'get'
  })
}

// 新增过滤记录
export function addLeachRecords(data) {
  return request({
    url: '/system/leachRecords',
    method: 'post',
    data: data
  })
}

// 修改过滤记录
export function updateLeachRecords(data) {
  return request({
    url: '/system/leachRecords',
    method: 'put',
    data: data
  })
}

// 删除过滤记录
export function delLeachRecords(id) {
  return request({
    url: '/system/leachRecords/' + id,
    method: 'delete'
  })
}
